home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
-
- <xsl:template match="/">
- <xsl:apply-templates />
- </xsl:template>
-
- <xsl:template match="Object">
- <HTML>
- <HEAD>
- <TITLE><xsl:value-of select="@project" /> : Object <xsl:value-of select="@name" /></TITLE>
- <META NAME="Description" CONTENT="{Description}" />
- <META NAME="Keywords" CONTENT="{Keywords}" />
- <STYLE>
- CODE {
- font-size: x-small;
- font-family: "courier new",monospace;
- }
-
- TT {
- font-size: x-small;
- }
-
- TABLE {
- padding: 2pt;
- }
-
- TH {
- font-weight: bold;
- text-align: left;
- vertical-align: top;
- }
-
- DL {
- margin-bottom: 0;
- }
-
- DT.param {
- font-style: italic;
- font-weight: bold;
- }
-
- DT.method {
- font-weight: bold;
- }
-
- DT.property {
- font-weight: bold;
- }
-
- .index {
- font-size: medium
- }
-
- .footer {
- font-size: xx-small
- }
-
- DT, DD, P, LI, TD, TH {
- font-family: sans-serif;
- font-size: 10pt;
- }
-
- H1 {
- font-size: 14pt
- }
-
- H2 {
- font-size: 12pt
- }
-
- H3 {
- font-size: 11pt
- }
-
- BODY {
- color: black;
- font-family: sans-serif;
- background-color: white;
- }
-
- A.extern:link {
- color: blue;
- }
-
- A:link {color: green}
- A:visited {color: gray}
- A:active {color: #CC0000}
- </STYLE>
- </HEAD>
- <BODY>
- <H1><xsl:value-of select="@name" /> Object</H1>
-
- <P><xsl:value-of select="Description"/></P>
-
- <xsl:if test="Property">
- <H2>Properties</H2>
- <UL>
- <xsl:for-each select="Property">
- <LI>
- <xsl:element name="A">
- <xsl:attribute name="HREF">#<xsl:value-of select="@name"/></xsl:attribute>
- <xsl:value-of select="@name"/></xsl:element>:
- <xsl:value-of select="@type"/>
- </LI>
- </xsl:for-each>
- </UL>
- </xsl:if>
-
- <xsl:if test="Method">
- <H2>Methods</H2>
- <UL>
- <xsl:for-each select="Method">
- <LI>
- <xsl:element name="A">
- <xsl:attribute name="HREF">#<xsl:value-of select="@name"/></xsl:attribute>
- <xsl:value-of select="@name"/></xsl:element>
- </LI>
- </xsl:for-each>
- </UL>
- </xsl:if>
-
- <xsl:if test="Event">
- <H2>Events</H2>
- <UL>
- <xsl:for-each select="Event">
- <LI>
- <xsl:element name="A">
- <xsl:attribute name="HREF">#<xsl:value-of select="@name"/></xsl:attribute>
- <xsl:value-of select="@name"/></xsl:element>
- </LI>
- </xsl:for-each>
- </UL>
- </xsl:if>
-
- <xsl:if test="Example">
- <H2>Example</H2>
- <PRE>
- <xsl:value-of select="Example"/>
- </PRE>
- </xsl:if>
-
- <HR />
-
- <xsl:apply-templates/>
-
- </BODY>
- </HTML>
- </xsl:template>
-
- <xsl:template match="Method">
- <xsl:element name="A">
- <xsl:attribute name="NAME">#<xsl:value-of select="@name"/></xsl:attribute>
- </xsl:element>
-
- <H2><xsl:value-of select="@name" /> Method</H2>
- <P><xsl:value-of select="Description" /></P>
-
- <H3>Syntax</H3>
- <P><xsl:value-of select="Syntax" /></P>
-
- <xsl:if test="Return">
- <H3>Return value</H3>
- <xsl:apply-templates select="Return"/>
- </xsl:if>
-
- <xsl:if test="Parameter">
- <H3>Parameters</H3>
- <P>
- <DL>
- <xsl:apply-templates select="Parameter"/>
- </DL>
- </P>
- </xsl:if>
-
- <HR />
- </xsl:template>
-
- <xsl:template match="Property">
- <xsl:element name="A">
- <xsl:attribute name="NAME">#<xsl:value-of select="@name"/></xsl:attribute>
- </xsl:element>
-
- <H2><xsl:value-of select="@name" /> Property</H2>
- <P><xsl:value-of select="Description" /></P>
- <P>Type:
- <xsl:choose>
- <xsl:when test="@xlink">
- <xsl:element name="A">
- <xsl:attribute name="HREF"><xsl:value-of select="@type"/>.xml</xsl:attribute>
- <xsl:value-of select="@type"/>
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@type" />
- </xsl:otherwise>
- </xsl:choose>
- </P>
- <HR />
- </xsl:template>
-
- <xsl:template match="Event">
- <xsl:element name="A">
- <xsl:attribute name="NAME">#<xsl:value-of select="@name"/></xsl:attribute>
- </xsl:element>
-
- <H2><xsl:value-of select="@name" /> Event</H2>
- <P><xsl:value-of select="Description" /></P>
-
- <H3>Syntax</H3>
- <P><xsl:value-of select="Syntax" /></P>
-
- <H3>Return value</H3>
- <P>Type: <xsl:value-of select="Return/@type" /></P>
-
- <H3>Parameters</H3>
- <DL>
- <xsl:for-each select="Parameter">
- <DT><xsl:value-of select="@name"/>: <xsl:value-of select="@type"/></DT>
- <DD><xsl:value-of select="Description"/></DD>
- </xsl:for-each>
- </DL>
-
- <HR />
- </xsl:template>
-
- <xsl:template match="Parameter">
- <DT><xsl:value-of select="@name"/>: <xsl:value-of select="@type"/></DT>
- <DD><xsl:value-of select="Description"/></DD>
- </xsl:template>
-
- <xsl:template match="Return">
- <P>Type:
- <xsl:choose>
- <xsl:when test="@xlink">
- <xsl:element name="A">
- <xsl:attribute name="HREF"><xsl:value-of select="@type"/>.xml</xsl:attribute>
- <xsl:value-of select="@type"/>
- </xsl:element>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="@type" />
- </xsl:otherwise>
- </xsl:choose>
- </P>
- </xsl:template>
-
- </xsl:stylesheet>
-